import * as questionApi from '../../api/hmmm/questions'

export default {
  namespaced: true,
  state: {
    questionList: {}
  },
  mutations: {
    SET_QUESTION_LIST(state, newValue) {
      state.questionList = newValue
    },
  },
  actions: {
    async updateQuestionList({ commit }, params) {
      const res = await questionApi.list(params);
      commit('SET_QUESTION_LIST', res);
    },
  },
}
